<?php

/**
 * Homepage actions.
 *
 * @package    5
 * @subpackage Homepage
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class HomepageActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
    $articleTable = Doctrine_Core::getTable('Article');
    $this->articles1 = $articleTable->findByCategoryName('官方动态');
    $this->articles2 = $articleTable->findByCategoryName('五行管理');
    $this->articles3 = $articleTable->findByCategoryName('五行养生');
    $this->articles4 = $articleTable->findByCategoryName('课程中心');
    $this->articles5 = $articleTable->findByCategoryName('专家介绍');
    $this->articles6 = $articleTable->findByCategoryName('五行视频');
  }
}